﻿<h1>Gymnázium Karviná - Burza učebnic </h1>
<!-- START turquoise NAV -->
<div class="menu">
<div class="logo">
<a href="index.php">Administrace</a>
</div> <!-- End Logo -->
<ul>
	<?php
				if(!empty($temp_nav))
				{ ?>
   
   <li class="<?php if($temp_nav == "home") echo "menuPolozkaAktive"; ?>"><a href="index.php" class="current"><img src="home.gif" width="17" height="14"></a></li>
   <li class="<?php if($temp_nav == "knihy") echo "menuPolozkaAktive"; ?>"><a href="knihy.php">Knihy</a></li>
   <li class="<?php if($temp_nav == "predmety") echo "menuPolozkaAktive"; ?>"><a href="pridani_predmetu.php">Předměty</a></li>
   <li class="<?php if($temp_nav == "statistiky") echo "menuPolozkaAktive"; ?>"><a href="statistiky.php">Statistiky</a></li>
   <li class="<?php if($temp_nav == "admin") echo "menuPolozkaAktive"; ?>"><a href="admin.php">Účet</a></li>
   <li class="<?php if($temp_nav == "burza") echo "menuPolozkaAktive"; ?>"><a href="../index.php">Burza</a></li>
   <li class="<?php if($temp_nav == "odhlasit") echo "menuPolozkaAktive"; ?>"><a href="logout.php">Odhlásit</a></li>
   	<?php } 
					else {?>
   
   <li class="<?php if($_COOKIE["nav"] == "home") echo "menuPolozkaAktive"; ?>"><a href="index.php" class="current"><img src="home.gif" width="17" height="14"></a></li>
   <li class="<?php if($_COOKIE["nav"] == "knihy") echo "menuPolozkaAktive"; ?>"><a href="knihy.php">Knihy</a></li>
   <li class="<?php if($_COOKIE["nav"] == "predmety") echo "menuPolozkaAktive"; ?>"><a href="pridani_predmetu.php">Předměty</a></li>
   <li class="<?php if($_COOKIE["nav"] == "statistiky") echo "menuPolozkaAktive"; ?>"><a href="statistiky.php">Statistiky</a></li>
   <li class="<?php if($_COOKIE["nav"] == "admin") echo "menuPolozkaAktive"; ?>"><a href="admin.php">Admin</a></li>
   <li class="<?php if($_COOKIE["nav"] == "burza") echo "menuPolozkaAktive"; ?>"><a href="../index.php">Burza</a></li>
   <li class="<?php if($_COOKIE["nav"] == "odhlasit") echo "menuPolozkaAktive"; ?>"><a href="logout.php">Odhlásit</a></li>
   <?php } ?>                    
</ul>
</div> <!-- End Nav -->